﻿using AmuTools;
using app.Api;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace app.Models
{
    [Model(TableName = "t_GSXT", PrimaryKey = "id", IdentityInsert = true)]
    public class GSXT
    {
        public int id { get; set; }

        [Field(DataType = "nvarchar(100)")]
        public string url { get; set; }

        public string apicode { get; set; }

        public int selected { get; set; }    

        public static GSXT GetEnabled()
        {
            return G.DB.Get<GSXT>("selected = 1").GetFirstEntity();
        }
    }
}